<?php
return [
	'components' => [
		'authManager' => [
            'class' => 'yii\rbac\DbManager',
        ],
		'as access' => [
        	'class' => 'mdm\admin\components\AccessControl',
        	'allowActions' => [
            	'admin/*', // add or remove allowed actions to this list
			]        
		],
	],

    'modules' => [
		'adminRbac' => [
			'class' => 'mdm\admin\Module',
			'layout' => 'left-menu', // default to null mean use application layout.
			'controllerMap' => [
				'assignment' => [
					'class' => 'mdm\admin\controllers\AssignmentController',
					'userClassName' => 'app\models\User',
					'idField' => 'id',
				 	'usernameField' => 'name',
				]
			],
			'menus' => [
				'assignment' => [
					'label' => 'Grand Access' // change label
				],
				'route' => null, // disable menu
			],
		],
	],
];

